package top.revery.api.api.user;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import top.revery.api.config.UserPageData;
import top.revery.api.entity.user.BaseMyCollection;

import java.util.Map;

/**
 * @author denghao
 * @title  我的收藏
 * @package
 * @date 2019/12/17 11:38
 */
@RequestMapping("/api_collection")
public interface IMyCollectionApi {
    //保存我的收藏
    @PostMapping("/save")
    BaseMyCollection save(@RequestBody BaseMyCollection baseMyCollection);

    //根据查询用户
    @PostMapping("/findById")
    BaseMyCollection findById(@RequestParam("id") Long id);

    //分页多条件查询所有
    @PostMapping("/getList")
    UserPageData getList(@RequestParam(value = "pageNum") int pageNum, @RequestParam(value = "pageSize")int pageSize,
                         @RequestBody Map map);
}
